-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SNOW-1782778: Fix Function available memory exhausted #2747
base: main
Are you sure you want to change the base?
Conversation
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can also make the update in MockServerConnection
to maintain consistency.
Seems like your changes contain some Local Testing changes, please request review from @snowflakedb/local-testing |
don't forget to update PR description |
Which Jira issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1782778
Fill out the following pre-review checklist:
Please describe how your code solves the related issue.
We hit this issue because when it is not a select statement, we do not have a limit on the query results, while regex is always not reliable enough to decide whether it is a select statement. Thus leading to accidental consume of huge queries.
This PR is meant to add a limit even if it is not select statement, we did this by consume it with iterator and return limited rows, which avoid this issue